No description available
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v3/api_keys/send_data';
let options = {method: 'GET', headers: {Authorization: 'Bearer <API_KEY>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"keys": [
{
"name": "my_api_key",
"owner": {
"userId": "<string>",
"teamId": 123,
"organisationId": "<string>"
},
"active": true,
"hashed": true,
"keyPermissions": {
"presets": [
{
"name": "my_preset",
"permissions": [
"read_logs"
]
}
],
"permissions": [
"<string>"
]
},
"value": "<string>",
"id": "<string>"
}
]
}
API key authentication
A successful response.
This data structure is the response obtained when retrieving an API key.
Was this page helpful?
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v3/api_keys/send_data';
let options = {method: 'GET', headers: {Authorization: 'Bearer <API_KEY>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"keys": [
{
"name": "my_api_key",
"owner": {
"userId": "<string>",
"teamId": 123,
"organisationId": "<string>"
},
"active": true,
"hashed": true,
"keyPermissions": {
"presets": [
{
"name": "my_preset",
"permissions": [
"read_logs"
]
}
],
"permissions": [
"<string>"
]
},
"value": "<string>",
"id": "<string>"
}
]
}
No description available
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v3/api_keys/send_data';
let options = {method: 'GET', headers: {Authorization: 'Bearer <API_KEY>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"keys": [
{
"name": "my_api_key",
"owner": {
"userId": "<string>",
"teamId": 123,
"organisationId": "<string>"
},
"active": true,
"hashed": true,
"keyPermissions": {
"presets": [
{
"name": "my_preset",
"permissions": [
"read_logs"
]
}
],
"permissions": [
"<string>"
]
},
"value": "<string>",
"id": "<string>"
}
]
}
API key authentication
A successful response.
This data structure is the response obtained when retrieving an API key.
Was this page helpful?
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v3/api_keys/send_data';
let options = {method: 'GET', headers: {Authorization: 'Bearer <API_KEY>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"keys": [
{
"name": "my_api_key",
"owner": {
"userId": "<string>",
"teamId": 123,
"organisationId": "<string>"
},
"active": true,
"hashed": true,
"keyPermissions": {
"presets": [
{
"name": "my_preset",
"permissions": [
"read_logs"
]
}
],
"permissions": [
"<string>"
]
},
"value": "<string>",
"id": "<string>"
}
]
}